package com.smartcruise.main.selfFragment.setting.languageSetting;

import com.smartcruise.R;

/**
 * Created by FengChaoQun
 * on 2018/1/20 0020
 */

public class LanguagePresenterImp implements LanguageSettingContract.Presenter {

    private LanguageSettingContract.View mView;

    public LanguagePresenterImp(LanguageSettingContract.View mView) {
        this.mView = mView;
    }

    @Override
    public void start() {
        mView.showLanguageChecked(0);
    }

    @Override
    public void setLanguageChecked(int position) {
        if (position != 0) {
            mView.showToast(mView.getActivity().getString(R.string.nowNotSupport));
        }
        mView.showLanguageChecked(position);
    }
}
